package com.zhengshang.api.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhengshang.common.annotation.Excel;
import com.zhengshang.common.core.domain.BaseEntity;

/**
 * APP用户观看广告记录对象 app_advertisement_record
 * 
 * @author zhengshang
 * @date 2021-04-14
 */
public class AppAdvertisementRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String userName;

    /** 广告类型（1banner广告，2插屏广告，3激励视频，4开屏广告，5信息流广告，6微信阅读） */
    @Excel(name = "广告类型", readConverterExp = "1=banner广告，2插屏广告，3激励视频，4开屏广告，5信息流广告，6微信阅读")
    private String advertisementType;

    /** 记录编号 */
    @Excel(name = "记录编号")
    private String advertisementNum;

    /** 广告状态（1进行中，2未完成，3已完成） */
    @Excel(name = "广告状态", readConverterExp = "1=进行中，2未完成，3已完成")
    private String state;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setAdvertisementType(String advertisementType)
    {
        this.advertisementType = advertisementType;
    }

    public String getAdvertisementType() 
    {
        return advertisementType;
    }
    public void setAdvertisementNum(String advertisementNum) 
    {
        this.advertisementNum = advertisementNum;
    }

    public String getAdvertisementNum() 
    {
        return advertisementNum;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("advertisementType", getAdvertisementType())
            .append("advertisementNum", getAdvertisementNum())
            .append("state", getState())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
